﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc.Html;

namespace System.Web.Mvc
{


    public static partial class HtmlHelpers
    {

        public static bool IsHomePage(this  HtmlHelper htmlHelper)
        {
            var currentRoute = htmlHelper.ViewContext.RouteData.GetRequiredString("action");
            return currentRoute == "Index";
        }
        public static bool IsLogOnPage(this  HtmlHelper htmlHelper)
        {
            var currentRoute = htmlHelper.ViewContext.RouteData.GetRequiredString("action");
            return currentRoute.ToLower() == "logon";
        }
    }

}